package com.chen.service.impl;

import com.chen.entity.User;
import com.chen.mapper.UserMapper;
import com.chen.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    //注入UserMapper
    @Autowired
    private UserMapper userMapper;

    //根据用户名查询用户
    @Override
    public User queryUserByCode(String usercode) {
        return userMapper.findUserByCode(usercode);
    }
}
